projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c7ab2
)
x86_emulate: Fix build with some versions of gcc targeting i386.
author
Keir Fraser
<keir@xen.org>
Sun, 31 Oct 2010 19:01:33 +0000
(19:01 +0000)
committer
Keir Fraser
<keir@xen.org>
Sun, 31 Oct 2010 19:01:33 +0000
(19:01 +0000)
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/x86_emulate/x86_emulate.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/x86_emulate/x86_emulate.c
b/xen/arch/x86/x86_emulate/x86_emulate.c
index 7ad0dd5d2f92363da09320c03ee1e43e614d0d2f..d6586d6944ae94daa2a1661d044a0dac870ca2d3 100644
(file)
--- a/
xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/
xen/arch/x86/x86_emulate/x86_emulate.c
@@
-2101,9
+2101,11
@@
x86_emulate(
case 4:
_regs.edx = (uint32_t)(((int32_t)_regs.eax < 0) ? -1 : 0);
break;
+#ifdef __x86_64__ /* compile warning with some versions of 32-bit gcc */
case 8:
_regs.edx = ((int64_t)_regs.eax < 0) ? -1 : 0;
break;
+#endif
}
break;